package com.lh.pattern.obvious;

import java.util.Random;

public class TestThread {

	/**
	 * 功能描述  
	 * @Author: lh  2012-10-19 下午04:45:49
	 */
	public static void main(String[] args) {
		int j = 0;
		System.out.println("i am start .");			
		HaHa ha ;
		for(int i=0;i<5;i++){
			//ha =new HaHa().start(); 
			new HaHa().start(); 
		}
		
       for(int k=0;k<5;k++)
    	   try {
    		   j++;
   			Random random = new Random();
   			int t = random.nextInt(100);
   			Thread.sleep(t);	
   			System.out.println("zhu="+j+"  slepp "+t);
   				
   	     	} catch (InterruptedException e) {
   			e.printStackTrace();	
	}
	}

}
